package org.bright.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Update;
import org.bright.entity.Employees;

public interface EmployeeMapper extends BaseMapper<Employees> {
    @Update("update employees set deleted_at = now() where employee_id = #{employeeId}")
    int updateById(Employees employees);
    @Delete("delete from employees where employee_id = #{employeeId}")
    int deleteById(Integer employeeId);
}
